package structural.composite;

public class EquipPart extends AbstractEquip{

    public EquipPart(String n, String b) {
        super(n, b);
    }

    @Override
    public AbstractEquip addChild(AbstractEquip child) {
        throw new UnsupportedOperationException("当前设备不支持添加子设备");
    }

    @Override
    protected void printAdditional() {
        System.out.println("设备类型：机器人配件");
    }
}
